<!-- pages/index.vue -->
<template>
  <div>
    <div class="title">1. XLSX 转换成 json</div>
    <ExcelUploader @done="acceptJsonData" />
    <div class="title">2. json => 代码</div>

    <Analysis v-if="json" :source="json"></Analysis>
  </div>
</template>

<script setup>
import ExcelUploader from "~/components/excelUploader/excel-uploader.vue";
import Analysis from "./translation-analysis-json.vue";

const json = ref();

const acceptJsonData = (val) => {
  json.value = val;
};
</script>

<style lang="scss" scoped>
/* 你可以在这里添加一些全局样式 */
.title {
  width: 100vw;
  margin: 12 * 2px;
  font-size: 22 * 2px;
  font-weight: 900;
}


</style>
